home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cyber Strip Poker
/
Cyber Strip Poker.rar
/
IMAGE.img
/
pok38pc.dir
/
00074_Script_74
< prev
next >
Wrap
Text File
|
1995-08-14
|
4KB
|
172 lines
--CheckHand
on checkHand
global hand,YV,YH,YH2
global y1,y2,y3,y4,y5
global ys1,ys2,ys3,ys4,ys5
global namein,nameout
set YV=0
set YH=0
set YH2=0
-- checkStraightFlush
if (ys1=ys2) and (ys2=ys3) and (ys3=ys4) and (ys4=ys5) and (y2-y1=1) and ¼
(y3-y2=1) and (y4-y3=1) and (y5-y4=1) then
if y5=12 then
put "HOLY SHIT... A ROYAL FLUSH!!!" into hand
set YV=8
set YH=((y5*4)+ys5)
set YH2=ys5
exit
else
put "YOU'VE GOT A STRAIGHT FLUSH!" into hand
set YV=8
set YH=((y5*4)+ys5)
set YH2=ys5
exit
end if
end if
-- checkFourOfAKind
if (y1=y2) and (y2=y3) and (y3=y4) then
set namein = y4
namer
put "You Have Four "&Nameout&"s" into hand
set YV=7
set YH=((y4*4))
set YH2=ys4
exit
end if
if (y2=y3) and (y3=y4) and (y4=y5) then
set namein = y4
namer
put "You Got Four Of A Kind "&Nameout&"s" into hand
set YV=7
set YH=((y4*4))
set YH2=ys5
exit
end if
-- checkFullHouse
if (y1=y2) and (y2=y3) and (y4=y5) then
put "You Have Full House" into hand
set yv=6
set yh=((y3*4))
set YH2=((y5*4)+ys3)
exit
end if
if (y1=y2) and (y3=y4) and (y4=y5) then
set namein = y5
namer
put "You Got 3 "&nameout&"s" into hand
set namein = y1
namer
set hand=hand&" & 2 "&nameout&"s"
set yv=6
set yh=((y3*4))
set YH2=((y2*4)+ys5)
exit
end if
-- checkFlush
if (ys1=ys2) and (ys2=ys3) and (ys3=ys4) and (ys4=ys5) then
put "You Got A Flush" into hand
set yv=5
set yh=((y5*4)+ys5)
set YH2=ys5
exit
end if
-- checkStraight
if (y2-y1=1) and (y3-y2=1) and (y4-y3=1) and (y5-y4=1) then
put "You Ended Up With A Straight" into hand
set yv=4
set yh=((y5*4)+ys5)
set YH2=ys5
exit
end if
-- checkTriplets
if (y1=y2) and (y2=y3) then
put "You Have Three Of A Kind" into hand
set yv=3
set yh=((y3*4))
set YH2=ys5
exit
end if
if (y2=y3) and (y3=y4) then
set namein=y4
namer
put "Three Of A Kind "&nameout&"s" into hand
set yv=3
set yh=((y4*4))
set YH2=ys5
exit
end if
if (y3=y4) and (y4=y5) then
put "You Got Triples" into hand
set yv=3
set yh=((y5*4))
set YH2=ys2
exit
end if
-- checkTwoPair
if (y1=y2) and (y3=y4) then
put "You Got Two Pair" into hand
set yv=2
set yh=((y4*4))
set YH2=ys5
exit
end if
if (y1=y2) and (y4=y5) then
set namein = y2
namer
put "You Got 2 "&nameout&"s" into hand
set namein = y4
namer
set hand=hand&" & 2 "&nameout&"s"
set yv=2
set yh=((y5*4))
set YH2=ys3
exit
end if
if (y2=y3) and (y4=y5) then
put "Two Pair On Your Side" into hand
set yv=2
set yh=((y5*4))
set YH2=ys1
exit
end if
-- checkOnePair
if (y1=y2) then
set namein=y2
namer
put "A Pair Of "&nameout&"s For You" into hand
set yv=1
set yh=((y2*4))
set YH2=ys5
exit
end if
if (y2=y3) then
put "You Got One Pair" into hand
set yv=1
set yh=((y3*4))
set YH2=ys5
exit
end if
if (y3=y4) then
put y4 into namein
namer
put "A Pair Of "&nameout&"s For You" into hand
set yv=1
set yh=((y4*4))
set YH2=ys5
exit
end if
if (y4=y5) then
put "You Show One Pair" into hand
set yv=1
set yh=((y5*4))
set YH2=ys3
exit
end if
-- decideNoPair
put y5 into namein
namer
put "You Got Nothing... "&nameout&" High" into hand
set yv=0
set yh=((y5*4))
set YH2=((y4*4))